Skip to content

filter1d: Add -N+e<cols> modifier to exclude columns from filtering - #9151

Merged
Esteban82 merged 2 commits into
masterfrom
filter1d_exclude_Columns
Aug 27, 2026
Merged

filter1d: Add -N+e<cols> modifier to exclude columns from filtering#9151
Esteban82 merged 2 commits into
masterfrom
filter1d_exclude_Columns

Conversation

@Esteban82

Copy link
Copy Markdown
Member

filter1d filters every column except the independent one (-N<t_col>). This adds a +e<cols> modifier to -N so you can also exclude other columns from being filtered.

Motivating example, added to filter1d.rst: given a profile with columns X, Y, Distance, Elevation, filtering normally applies to every column except the independent one, which would also smooth X and Y. To filter only Elevation as a function of Distance while leaving X,Y untouched:

gmt filter1d profile.txt -Fb100 -N2+e0,1 -E > profile_filt.txt

Done with Claude Opus 5.

@Esteban82 Esteban82 added this to the 6.8.0 milestone Aug 26, 2026
@Esteban82
Esteban82 requested review from joa-quim and seisman August 26, 2026 10:33
@Esteban82 Esteban82 added add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence. enhancement Improving an existing feature labels Aug 26, 2026
@Esteban82

Copy link
Copy Markdown
Member Author

Could someone please have a look at this PR? I’d like to use it. Thanks!

@joa-quim

Copy link
Copy Markdown
Member

I can't keep with the pace at which e-mails are arriving.

@Esteban82
Esteban82 merged commit c32020d into master Aug 27, 2026
10 of 13 checks passed
@Esteban82
Esteban82 deleted the filter1d_exclude_Columns branch August 27, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence. enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants